AUTOMAKE_OPTIONS = foreign no-dependencies

amproxy.gen.c amproxy.gen.h: amproxy.rpc
	event_rpcgen.py amproxy.rpc || echo "No Python installed"

BUILT_SOURCES = amproxy.gen.c amproxy.gen.h
bin_PROGRAMS = amproxy 
amproxy_SOURCES= amproxy.c amproxy.h utils.c utils.h status.c status.h \
	amproxy.gen.c amproxy.gen.h log.c log.h atomicio.c
amproxy_LDADD= @LIBOBJS@ @EVENTLIB@


# Flags and other stuff
CFLAGS = -O2 -g 
INCLUDES = -I$(top_srcdir)/include @EVENTINC@


EXTRA_DIST =black_list white_list amproxy.rpc \
	strlcpy.c  strnstr.c \
	include/sys/tree.h
